/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package ve.com.fitsoft.eicb.encuesta.SB.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    leo
 * @generated
 */
public class PreguntaSoap implements Serializable {
	public static PreguntaSoap toSoapModel(Pregunta model) {
		PreguntaSoap soapModel = new PreguntaSoap();

		soapModel.setIdPregunta(model.getIdPregunta());
		soapModel.setIdEncuesta(model.getIdEncuesta());
		soapModel.setPregunta(model.getPregunta());
		soapModel.setTipo(model.getTipo());
		soapModel.setOpciones(model.getOpciones());
		soapModel.setCompanyId(model.getCompanyId());
		soapModel.setGroupId(model.getGroupId());

		return soapModel;
	}

	public static PreguntaSoap[] toSoapModels(Pregunta[] models) {
		PreguntaSoap[] soapModels = new PreguntaSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static PreguntaSoap[][] toSoapModels(Pregunta[][] models) {
		PreguntaSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new PreguntaSoap[models.length][models[0].length];
		}
		else {
			soapModels = new PreguntaSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static PreguntaSoap[] toSoapModels(List<Pregunta> models) {
		List<PreguntaSoap> soapModels = new ArrayList<PreguntaSoap>(models.size());

		for (Pregunta model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new PreguntaSoap[soapModels.size()]);
	}

	public PreguntaSoap() {
	}

	public long getPrimaryKey() {
		return _idPregunta;
	}

	public void setPrimaryKey(long pk) {
		setIdPregunta(pk);
	}

	public long getIdPregunta() {
		return _idPregunta;
	}

	public void setIdPregunta(long idPregunta) {
		_idPregunta = idPregunta;
	}

	public long getIdEncuesta() {
		return _idEncuesta;
	}

	public void setIdEncuesta(long idEncuesta) {
		_idEncuesta = idEncuesta;
	}

	public String getPregunta() {
		return _pregunta;
	}

	public void setPregunta(String pregunta) {
		_pregunta = pregunta;
	}

	public String getTipo() {
		return _tipo;
	}

	public void setTipo(String tipo) {
		_tipo = tipo;
	}

	public String getOpciones() {
		return _opciones;
	}

	public void setOpciones(String opciones) {
		_opciones = opciones;
	}

	public long getCompanyId() {
		return _companyId;
	}

	public void setCompanyId(long companyId) {
		_companyId = companyId;
	}

	public long getGroupId() {
		return _groupId;
	}

	public void setGroupId(long groupId) {
		_groupId = groupId;
	}

	private long _idPregunta;
	private long _idEncuesta;
	private String _pregunta;
	private String _tipo;
	private String _opciones;
	private long _companyId;
	private long _groupId;
}